package cloud.study.template.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author : forget.liu@aliyun.com
 * @date : 2020/5/17 23:50
 * @description : TODO
 */
@Configuration
@MapperScan("cloud.study.template.mapper")
public class MybatisPlusConfig {

    /**
     * 配置分页
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
